#增加一下编码器的路径,
set(tool_paths     #支持多个路径识别
"/opt/gcc-sigmastar-9.1.0-2019.11-x86_64_arm-linux-gnueabihf"
"/home/hly2070/gcc-sigmastar-9.1.0-2019.11-x86_64_arm-linux-gnueabihf"
)  
#设置list值
foreach(tpath ${tool_paths}) 
     message("curpath ${tpath}")
     if(EXISTS ${tpath})
        set(tools ${tpath})
        message("set cross build tool ${tools}")
        break() 
     endif()
endforeach(tpath)   #结束

#编译工具链接
set(CMAKE_C_COMPILER ${tools}/bin/arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER ${tools}/bin/arm-linux-gnueabihf-g++)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

#链接库目录
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib/ssc33x/)
option(HAVE_REPLAY "use REPLAY MOD " ON)